//
//  SXRefreshView.m
//  ShiXun
//
//  Created by lanou on 15/11/5.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXRefreshView.h"

@implementation SXRefreshView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithWhite:0.000 alpha:0.490];
        
        self.userInteractionEnabled = NO;
        
        UIActivityIndicatorView *view = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
        view.center = self.center;
        view.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
        [self addSubview:view];
        
        [view startAnimating];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
